name = '马冬梅'
age = 18
score = 99.5
print('姓名：%s，年龄：%d, 成绩：%f' % (name, age, score))
print('姓名：%s，年龄：%d, 成绩：%.1f' % (name, age, score))

print(f'姓名：{name}，年龄：{age}, 成绩：{score}')

print('姓名：{0}，年龄：{1}, 成绩：{2}'.format(name, age, score))